/*
 * Copyright (C) 2011-2021 ShenZhen iBOXCHAIN Information Technology Co.,Ltd.
 *
 * All right reserved.
 *
 * This software is the confidential and proprietary
 * information of iBOXCHAIN Company of China.
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with iBOXCHAIN inc.
 *
 */
package cn.anoxia.springframework.beans.factory;

import cn.anoxia.springframework.beans.PropertyValues;

/**
 * @author huangle
 */
public class BeanDefinition {

  // 类基本信息
  private Class beanClass;

  // 类参数信息
  private PropertyValues propertyValues;


  public BeanDefinition(Class beanClass){
    // 自动创建一个参数空的参数对象
    this(beanClass,null);
  }

  public BeanDefinition(Class beanClass,PropertyValues propertyValues){
    this.beanClass = beanClass;
    this.propertyValues = propertyValues != null ? propertyValues : new PropertyValues();
  }

  public Class getBeanClass() {
    return beanClass;
  }

  public void setBeanClass(Class beanClass) {
    this.beanClass = beanClass;
  }

  public PropertyValues getPropertyValues() {
    return propertyValues;
  }

  public void setPropertyValues(PropertyValues propertyValues) {
    this.propertyValues = propertyValues;
  }
}
